function writhHead() {
    document.writeln(" <div class=\'site-name\'>");
    document.writeln("            <h1 class=\'hidden\'>CrossRun</h1>");
    document.writeln("            <a id=\'logo\' href=\'/.\'>CrossRun</a>");
    document.writeln("            <p class=\'description\'>谁与我大梦一场</p>");
    document.writeln("        </div>");
    document.writeln("        <div id=\'nav-menu\'>");
    document.writeln("            <a class=\'current\' href=\'/\'><i class=\'fa fa-home\'> 首页</i></a>");
    document.writeln("            <a class=\'current\' href=\'/about.html\'><i class=\'fa fa-about\'> 关于</i></a>");
    document.writeln("        </div>");
}

function formatDateTime(inputTime) {
    var date = new Date(inputTime);
    var y = date.getFullYear();
    var m = date.getMonth() + 1;
    m = m < 10 ? ('0' + m) : m;
    var d = date.getDate();
    d = d < 10 ? ('0' + d) : d;
    var h = date.getHours();
    h = h < 10 ? ('0' + h) : h;
    var minute = date.getMinutes();
    var second = date.getSeconds();
    minute = minute < 10 ? ('0' + minute) : minute;
    second = second < 10 ? ('0' + second) : second;
    return y + '-' + m + '-' + d + ' ' + h + ':' + minute + ':' + second;
}